package com.ruyuan.user.server.domain.service;

import com.ruyuan.common.model.PageDTO;
import com.ruyuan.user.server.domain.model.User;
import com.ruyuan.user.server.domain.service.request.PageQueryUserParam;

/**
 * @author xx
 */
public interface UserDomainService {

    Long saveUser(User user);

    User queryUserByUserName(String userName);

    User queryUserById(Long userId);

    PageDTO<User> queryUserByPage(PageQueryUserParam pageQueryUserParam);

    boolean updatePsd(Long userId, String psd);

}
